﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="XemDAKT_Main.ascx.cs" Inherits="TDT_Project.Controller.XemDAKT_Main" %>
 <link href="../css/Telerik.css" rel="stylesheet" type="text/css" />
 <%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
  <style type="text/css">
    .style3
    {
        color:Blue;
        
    }
    .Chu
    {
        font-weight:bold;
        font-family:Times New Roman;
    }
     .rgAltRow td
            {
                border: 1px solid #96CAFF !important;
            }
            .gridTelerikChuan .rgSelectedRow
            {
                background: #999 !important;
                color: #fff;
            }
            .gridTelerikChuan .rgSelectedRow input[type="text"].riDisabled
            {
                color: #fff;
            }
            .gridTelerikChuan .rgSelectedRow td
            {
                background: #999 !important;
            }
            .gridWiewHeader
            {
                background-color: #2D79F8 !important;
                padding: 0 !important;
            }
            .rgHeader gridWiewHeader
            {
                padding: 0 !important;
            }
</style>
<p></p>
<h4 style="color:Blue">Danh sách đáp án đề kiểm tra</h4>
<hr style="border:1px thin"/>
    <div>
           <table>
                    <tr>
                            <td align="right" style="padding:10px;">Xem theo môn:</td>
                            <td style="padding:10px;">
                                <telerik:RadComboBox ID="cbo_monhoc" runat="server" DropDownWidth="200px" 
                            Skin="Vista" Width="200px"                             
                            AutoPostBack="True" onselectedindexchanged="cbo_monhoc_SelectedIndexChanged"  >
                        </telerik:RadComboBox>
                            </td>
                    </tr>
                    <tr>
                        <td colspan='2'>
                                <telerik:RadGrid ID="rid_KT" runat="server" AutoGenerateColumns="False" 
                PageSize="50" HeaderStyle-CssClass="gridWiewHeader" PagerStyle-HorizontalAlign="Right"
                AlternatingRowStyle-CssClass="alt" PagerStyle-CssClass="gridWiewPaging" CellSpacing="0"
                GridLines="None" onitemcommand="rid_KT_ItemCommand" >
                <HeaderStyle CssClass="gridWiewHeader" />
                <PagerStyle Mode="NextPrevNumericAndAdvanced" />
                 <ClientSettings>
                                <Selecting AllowRowSelect="false" />
                               
                            </ClientSettings>
                <MasterTableView NoMasterRecordsText="Không tìm thấy dữ liệu." DataKeyNames="ID"
                    TableLayout="Fixed">
                    <CommandItemSettings ExportToPdfText="Export to PDF" />
                    <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column" Visible="True">
                    </RowIndicatorColumn>
                    <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column" Visible="True">
                    </ExpandCollapseColumn>
                    <Columns>
                        <telerik:GridBoundColumn DataField="STT" ItemStyle-HorizontalAlign="Center"
                            HeaderStyle-HorizontalAlign="Center" HeaderText="STT" UniqueName="STT"
                            ReadOnly="True" HeaderStyle-Width="30">
                            <ItemStyle HorizontalAlign="Left" />
                        </telerik:GridBoundColumn>  
                         <telerik:GridBoundColumn DataField="TenNienHoc" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center"
                            HeaderText="Niên học" UniqueName="TenNienHoc" ReadOnly="True" HeaderStyle-Width="80">
                            <ItemStyle HorizontalAlign="Left" />
                        </telerik:GridBoundColumn>   
                         <telerik:GridBoundColumn DataField="ID" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center"
                            HeaderText="ID" UniqueName="ID" ReadOnly="True" HeaderStyle-Width="50" Display="false">
                            <ItemStyle HorizontalAlign="Left" />
                        </telerik:GridBoundColumn>   
                          <telerik:GridBoundColumn DataField="NienHoc_ID" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center"
                            HeaderText="NienHoc_ID" UniqueName="NienHoc_ID" ReadOnly="True" HeaderStyle-Width="50" Display="false">
                            <ItemStyle HorizontalAlign="Left" />
                        </telerik:GridBoundColumn>   
                          <telerik:GridBoundColumn DataField="Khoi_ID" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center"
                            HeaderText="Khoi_ID" UniqueName="Khoi_ID" ReadOnly="True" HeaderStyle-Width="50" Display="false">
                            <ItemStyle HorizontalAlign="Left" />
                        </telerik:GridBoundColumn>   
                          <telerik:GridBoundColumn DataField="Mon_ID" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center"
                            HeaderText="Mon_ID" UniqueName="Mon_ID" ReadOnly="True" HeaderStyle-Width="50" Display="false">
                            <ItemStyle HorizontalAlign="Left" />
                        </telerik:GridBoundColumn>   
                        <telerik:GridBoundColumn DataField="TenKhoi" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center"
                            HeaderText="Khối" UniqueName="TenKhoi" ReadOnly="True" HeaderStyle-Width="60">
                            <ItemStyle HorizontalAlign="Left" />
                        </telerik:GridBoundColumn>     
                        <telerik:GridBoundColumn DataField="TenMonHoc" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center"
                            HeaderText="Môn" UniqueName="TenMonHoc" ReadOnly="True" HeaderStyle-Width="100">
                            <ItemStyle HorizontalAlign="Left" />
                        </telerik:GridBoundColumn>         
                     <telerik:GridTemplateColumn HeaderText="Đáp án" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center"
                                    HeaderStyle-Width="200px">
                                        <HeaderStyle  />
                                        <ItemTemplate>
                                           <%-- <asp:Label ID="WarrantyCode" runat="server" Text='<%# Eval("WarrantyCode") %>' />--%>
                                             <asp:LinkButton ID="lnkTieuDe" Font-Underline="true" CommandArgument='<%# Eval("TieuDe") %>'
                                                Text='<%# Eval("TieuDe") %>' CommandName="TieuDe" runat="server" CausesValidation="False">
                                            </asp:LinkButton>
                                        </ItemTemplate>
                                        <ItemStyle HorizontalAlign="Left" />
                                    </telerik:GridTemplateColumn>
                                     
                         <telerik:GridBoundColumn DataField="FileURL" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center"
                            HeaderText="" UniqueName="FileURL" ReadOnly="True" HeaderStyle-Width="50">
                            <ItemStyle HorizontalAlign="Left" />
                        </telerik:GridBoundColumn>                     

                    </Columns>
                    <EditFormSettings>
                        <EditColumn FilterControlAltText="Filter EditCommandColumn column">
                        </EditColumn>
                    </EditFormSettings>
                </MasterTableView>              
                <FilterMenu EnableImageSprites="False">
                </FilterMenu>
            </telerik:RadGrid>
                        </td>
                    </tr>
                     <tr>
                        <td colspan='2'>
                             <div class="paging" id="divPaging" runat="server" visible="false">
                            <table cellpadding="0" cellspacing="0" border="0" style="float: right" id="tbClassPage">
                                <tr>
                                    <td width="100px" class="" style="padding-right: 0px;">
                                        <asp:LinkButton ID="lntFirst_NotRegister" Font-Underline="true" runat="server" Text="Trang đầu" ForeColor="#0000FF"
                                            OnClick="lntFirst_Click"></asp:LinkButton>
                                    </td>
                                    <td style="color: #0000FF; padding-right: 0px">
                                        <asp:DataList ID="DLPaging" runat="server" RepeatDirection="Horizontal" HorizontalAlign="Center"
                                            OnItemCommand="DLPaging_ItemCommand" OnItemDataBound="DLPaging_ItemDataBound">
                                            <ItemTemplate>
                                                <asp:LinkButton ID="lnkbtnPaging" runat="server" CommandArgument='<%# Eval("PageIndex") %>'
                                                    ToolTip='<%# Eval("PageIndex") %>' Font-Underline="false" Font-Size="10" ForeColor="#0000FF"
                                                    CommandName="Paging" Text='<%# Eval("PageText") %>'></asp:LinkButton>&nbsp;
                                            </ItemTemplate>
                                        </asp:DataList>
                                    </td>
                                    <td width="100px" align="right">
                                        <asp:LinkButton ID="lntLast_NotRegister" runat="server" Font-Underline="true" Text="Trang cuối" ForeColor="#0000FF"
                                            OnClick="lntLast_Click"></asp:LinkButton>&nbsp
                                    </td>
                                </tr>
                            </table>
                        </div>
                        </td>
                    </tr>
           </table>
    </div>
    </ContentTemplate>
</asp:UpdatePanel>